package common

import (
	"gameTest/datamodels"
	"time"
)

func BuildResult(code int64, des string, data interface{})  datamodels.Result {
	return datamodels.Result{
		Code:code,
		Time:time.Now().Format("2006-01-02 15:04:05"),
		Des:des,
		Data:data,
	}
}